package cn.com.xf.service;

import java.math.BigDecimal;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import cn.com.xf.domain.TblSiteWeekly;
import cn.com.xf.domain.TblSiteWeeklyArticle;
import cn.com.xf.domain.TblSiteWeeklyMap;

public interface WeeklyService {
	
	public List<TblSiteWeekly> selectCatalog();

	public List<TblSiteWeeklyArticle> selectArticleList();

	public TblSiteWeeklyArticle selectArticle();

	/**
	 * 获取最新一期的文章目录
	 * 
	 * @return
	 */
	public List<TblSiteWeeklyArticle> selectLast();

	/**
	 * 获取文章正文
	 * 
	 * @param articleId
	 * @return
	 */
	public TblSiteWeeklyArticle selectWeeklyArticleById(String articleId);

	/**
	 * 获取热点
	 * 
	 * @param weekId
	 * @return
	 */
	public List<TblSiteWeeklyMap> selectMapByWeekId(String weekId);
	
	public int selectWeeklyCount();
	
	public List<TblSiteWeekly> selectWeekly(int begin, int pageSize);
	
	public boolean insertWeekly(HttpServletRequest request);
	
	public void deleteWeekly(BigDecimal id);
}
